#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void FIND(int arr1[], int arr2[], int n, int m)
{
	int arr[100] = { 0 };
	int i = 0;
	int j = 0;
	int g = 0;
	int f = 0;
	int count = 0;
	int input = 0;
	for (i; i < n; i++)
	{
		for (j = 0; j < m; j++)
		{
			if (arr1[i] == arr2[j])
			{
				if (count == 0)
				{
					arr[0] = arr1[i];
						f++;
					count++;
				}
				else {
					input = 1;
					for (g = 0; g < count; g++)
					{
						if (arr[g] == arr1[i])
							input = 0;
					}
					if (input)
					{
						arr[f] = arr1[i];
						f++;
						count++;
						break;
					}
				}
			}
		}
	}
	if (count) {
		for (i = 0; i < count; i++)
		{
			printf("%d ", arr[i]);
		}
	}
	else
		printf("No Answer");
}
void Putin(int arr[100], int n)
{
	
}
int main()
{
	int arr1[100] = { 0 };
	int arr2[100] = { 0 };
	int n1 = 0;
	int n2 = 0;
	scanf("%d", &n1);
	int e = 0;
	for (e; e < n1; e++)
	{
		scanf("%d ", &arr1[e]);
	}
	scanf("%d", &n2);
	 e = 0;
	for (e; e < n2; e++)
	{
		scanf("%d ", &arr2[e]);
	}
		FIND(arr1, arr2, n1,n2);
	return 0;
}